import tkinter
from tkinter.messagebox import showinfo
import windnd

def dragged_files(files):
    msg = '\n'.join((item.decode('gbk') for item in files))
    showinfo('dragged files are', msg)
    filelist =[]
    for item in files:
        filelist.append(item.decode('gbk'))
    print('filelist:', filelist)

tk = tkinter.Tk()
windnd.hook_dropfiles(tk, func=dragged_files)
tk.mainloop()